﻿package helper {	import flash.display.*;	import flash.events.*;		/**	* ...	* @author Robin Petterd	*/	public class  Helper extends MovieClip {				private var _model; 		private var _view; 				public function Helper() {			//trace("helper built"); 						_model = new HelperModel();			_view = new HelperView();						addChild(_view); 		}				public function setData(d:XMLList) {			_model.setData(d);		}		public function update(e:Event) 		{  						//trace( "The e.target is " + e.target.myHelp.CurrentHelp);			////trace( e.target.myHelp.CurrentHelp.typeOf());						if( e.target.myHelp.CurrentHelp == undefined) {				//trace("There is not help");			}  else {				_model.update(e);			}										if (e.target.myHelp.CurrentHelp != undefined ) {					_view.update(_model.currentHelp.valueOf());			} else {				//trace("hhhhhhhhhhhhhh - no help was found - kill off the last help "); 				_view.killLast();			}														}	}	}